#
# spec file for package crowbar
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define barclamp <%= @name %>
%define barclamp_displayname <%= @displayname %>
%define dell_dir /opt/dell
%define dell_bin_dir %{dell_dir}/bin
%define bc_dir %{dell_dir}/barclamps/%{barclamp}
%define _topdir <%= @dest %>

Name:           crowbar-barclamp-%{barclamp}
Version:        <%= @version %>
Release:        0
License:        Apache-2.0
Summary:        Crowbar barclamp for %{barclamp_displayname}
Url:            http://crowbar.github.io
Group:          System/Management
Requires:       <%= @requires.join(', ') %>
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is the %{barclamp_displayname} barclamp for Crowbar.

Crowbar is a platform for server provisioning and deployment from bare
metal.  It provides server discovery, firmware upgrades, and operating
system installation using PXE Boot.  It deploys applications on top of
functioning operating systems using Chef.

%install
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
"<%= @barclamp_install %>" --build --root "%{buildroot}" "<%= @path %>"

%files
%defattr(-,root,root,-)
%dir /
/*
# FIXME: FHS violation, should not have config files in /opt
# https://github.com/crowbar/crowbar/issues/833

%changelog
